export const cartProducts = state =>{
  return state.added.map(({id,num,categoryType})=>{
	//   查找分类id获取结果
		const products = state.productAll.find(o=>o.id===categoryType).productList.find(p=>p.id===id)
		return {
			id:id,
			name: products.name,
			categoryType: categoryType,
			price: products.price,
			unit: products.unit,
			num
		}
	})
}
export const getShopInfo = state => state.shopInfo